<template>
  <div id="app">
    <div class="content">
      <router-view></router-view>
    </div>
    <!-- 菜单 -->
    <div class="bottom">
      <router-link to="/" tag="div">商品列表</router-link>
      <router-link to="/shopcart" tag="div">购物车</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
body{
  margin: 0;
  padding: 0;
}
#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.content{
  flex:1;
  background-color: azure;
  overflow-y: scroll;
}
.bottom{
  height: 40px;
  background-color: bisque;
  display: flex;
}
.bottom>div{
   flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bottom>div:not(:last-child){
  border-right: 1px darkgoldenrod solid;
}
.bottom>div.router-link-exact-active{
  background-color: darksalmon;
  color: white;
  font-weight: 800;
}
</style>
